package com.ybkj.o2o.mc.entity;

import com.ybkj.o2o.mc.common.DateTimeField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 乘客级别.
 *
 * @author Administrator
 */
public class PassengerGrade implements Serializable {
    private Long id;

    private String name; // 级别名称

    private Integer limitAmounts;// 一次性下单最大人数

    private Integer dailyOrders;// 每日下单最大限制

    private Long daijiaAreaId;// 代驾收费

    private Long tzAreaId;// 趟租收费

    private Long brzAreaId;// 半日租收费

    private Long rzAreaId;// 日租收费

    private Long jjAreaId;// 接机收费

    private Long sjAreaId;// 送机收费

    private Long jzAreaId;// 接站收费

    private Long szAreaId;// 送站收费

    private boolean defaultGrade;

    private Long companyId;// 公司id

    private String companyName;// 公司名称

    private String appKey; // 用于区别系统

    @JsonSerialize(using = DateTimeField.class)
    private Date created;

    @JsonSerialize(using = DateTimeField.class)
    private Date updated;

    @JsonIgnore
    private Integer version;

    private Long parallelOrderNumber;// 并行订单量

    private List<PassengerGradeAndArea> passengerGradeAndAreas;

    public Integer getDailyOrders() {
        return dailyOrders;
    }

    public void setDailyOrders(Integer dailyOrders) {
        this.dailyOrders = dailyOrders;
    }

    public List<PassengerGradeAndArea> getPassengerGradeAndAreas() {
        return passengerGradeAndAreas;
    }

    public void setPassengerGradeAndAreas(List<PassengerGradeAndArea> passengerGradeAndAreas) {
        this.passengerGradeAndAreas = passengerGradeAndAreas;
    }

    public Long getParallelOrderNumber() {
        return parallelOrderNumber;
    }

    public void setParallelOrderNumber(Long parallelOrderNumber) {
        this.parallelOrderNumber = parallelOrderNumber;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey == null ? null : appKey.trim();
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getLimitAmounts() {
        return limitAmounts;
    }

    public void setLimitAmounts(Integer limitAmounts) {
        this.limitAmounts = limitAmounts;
    }

    public Long getDaijiaAreaId() {
        return daijiaAreaId;
    }

    public void setDaijiaAreaId(Long daijiaAreaId) {
        this.daijiaAreaId = daijiaAreaId;
    }

    public Long getTzAreaId() {
        return tzAreaId;
    }

    public void setTzAreaId(Long tzAreaId) {
        this.tzAreaId = tzAreaId;
    }

    public Long getBrzAreaId() {
        return brzAreaId;
    }

    public void setBrzAreaId(Long brzAreaId) {
        this.brzAreaId = brzAreaId;
    }

    public Long getRzAreaId() {
        return rzAreaId;
    }

    public void setRzAreaId(Long rzAreaId) {
        this.rzAreaId = rzAreaId;
    }

    public Long getJjAreaId() {
        return jjAreaId;
    }

    public void setJjAreaId(Long jjAreaId) {
        this.jjAreaId = jjAreaId;
    }

    public Long getSjAreaId() {
        return sjAreaId;
    }

    public void setSjAreaId(Long sjAreaId) {
        this.sjAreaId = sjAreaId;
    }

    public Long getJzAreaId() {
        return jzAreaId;
    }

    public void setJzAreaId(Long jzAreaId) {
        this.jzAreaId = jzAreaId;
    }

    public Long getSzAreaId() {
        return szAreaId;
    }

    public void setSzAreaId(Long szAreaId) {
        this.szAreaId = szAreaId;
    }

    public boolean isDefaultGrade() {
        return defaultGrade;
    }

    public void setDefaultGrade(boolean defaultGrade) {
        this.defaultGrade = defaultGrade;
    }

}
